<%@include file="../base/include.jsp"%>
<c:if test='${newsListCommand.prevPage}'>
	<%@include file="./pagination.jsp"%>
</c:if>
<c:forEach var="news" items="${newsListCommand.news}"
	varStatus="iterator">
	<div class="row-fluid">
		<div class="span12">
			<div class="row-fluid">
				<div class="span2">
					<h6>
						<fmt:formatDate value="${news.dateCreated}"
							pattern="dd-MM-yyyy HH:mm" type="date" />
					</h6>
				</div>
				<div class="span10">
					<h5>${news.subject}</h5>
				</div>
			</div>
			<div class="row-fluid">
				<div class="span2">
					<img src="<c:url value='/news-img/${news.id}'/>" />
				</div>
				<div class="span10" id="content${news.id}">${news.news}</div>
			</div>

			<div class="row-fluid">
				<div class="span12">
					<c:if test="${news.showUrl}">
						<div class="pull-right">
							<a href="${news.url}">More</a>
						</div>
					</c:if>
				</div>
			</div>

		</div>
	</div>
	<hr />
</c:forEach>
<script type="text/javascript">
	$('div.container-fluid>ul>li#homeMenu').addClass('active');
</script>

<%@include file="./pagination.jsp"%>